package com.jiangjiang.eshop.order.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName OrderInfoEntity
 * @Description TODO
 * @Author jhw
 * @Date 2021/7/24 11:12
 * @Version 1.0
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("order_item")
public class OrderItemEntity {
    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 订单id
     */
    @TableField("order_info_id")
    private Long orderInfoId;
    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;
    /**
     * 商品sku id
     */
    @TableField("goods_sku_id")
    private Long goodsSkuId;
    /**
     * 商品sku编号
     */
    @TableField("goods_sku_code")
    private String goodsSkuCode;
    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;
    /**
     * 商品sku的销售属性
     */
    @TableField("sale_properties")
    private String saleProperties;
    /**
     * 商品毛重
     */
    @TableField("goods_gross_weight")
    private Double goodsGrossWeight;
    /**
     * 商品sku的购买数量
     */
    @TableField("purchase_quantity")
    private Long purchaseQuantity;
    /**
     * 商品sku的购买价格
     */
    @TableField("purchase_price")
    private Double purchasePrice;
    /**
     * 商品sku使用的促销活动id
     */
    @TableField("promotion_activity_id")
    private Long promotionActivityId;
    /**
     * 商品长度
     */
    @TableField("goods_length")
    private Double goodsLength;
    /**
     * 商品宽度
     */
    @TableField("goods_width")
    private Double goodsWidth;
    /**
     * 商品高度
     */
    @TableField("goods_height")
    private Double goodsHeight;
    /**
     * 订单条目的创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;
    /**
     * 订单条目的修改时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
